package com.fc.advbox.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * InvestorAssetEntity
 *
 * @author Gary.Jiang
 * @date 2018/6/26.15:41
 */

@Getter
@Setter
@ToString
@ApiModel(value = "InvestorAssetEntity", description = "投资人资产对象")
public class InvestorAssetEntity implements Serializable {

    @ApiModelProperty(value = "ID", allowEmptyValue = true)
    private Long id;

    @ApiModelProperty(value = "USER_ID")
    @NotNull(message="用户ID不能为空")
    private Long userId;

    @ApiModelProperty(value = "ACCT_ID")
    @NotNull(message="账户ID不能为空")
    private Long acctId;

    @ApiModelProperty(value = "ASSET_NAME")
    @NotBlank(message="资产名称不能为空")
    private String assetName;

    @ApiModelProperty(value = "amount")
    @NotEmpty(message="金额不能为空")
    private BigDecimal amount;

    @ApiModelProperty(value = "INTEREST_PER_DAY")
    private BigDecimal interestPerDay;

    @ApiModelProperty(value = "INTEREST_PER_YEAR")
    @NotEmpty(message="年化收益不能为空")
    private BigDecimal interestPerYear;

    @ApiModelProperty(value = "INTEREST_PER_MONTH")
    private BigDecimal interestPerMonth;

    @ApiModelProperty(value = "balance")
    private BigDecimal balance;

    @ApiModelProperty(value = "status")
    private String status;

    @ApiModelProperty(value = "START_TIME")
    private Date startTime;

    @ApiModelProperty(value = "END_TIME")
    private Date endTime;

    @ApiModelProperty(value = "BUY_TIME")
    private Date buyTime;

    @ApiModelProperty(value = "REDEEM_TIME")
    private Date redeemTime;

}